From 08ee36e7c4825d351c1d23a065588d6f7b5e227b Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Sat, 5 Jun 2021 15:37:52 +0800 Subject: [PATCH] gtkpopcountprivate.h: Fix build on ARM/aarch64 Visual Studio __popcnt() is not supported for ARM nor ARM64 Visual Studio builds, so we must use the fallback implementation as intrinsics are not supported for this purpose on ARM/ARM64 Visual Studio builds. --- gtk/gtkpopcountprivate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkpopcountprivate.h b/gtk/gtkpopcountprivate.h index 8a99dd2b26..df2282c985 100644 --- a/gtk/gtkpopcountprivate.h +++ b/gtk/gtkpopcountprivate.h @@ -20,7 +20,7 @@ #pragma once -#if defined(_MSC_VER) +#if defined(_MSC_VER) && !defined (_M_ARM) && !defined (_M_ARM64) #include static inline guint -- 2.30.2